package logic.common.game;

import interfaces.spawnMenu.spawnMap.SpawnButtonContent.SpawnType;

import com.jme.math.Vector3f;

import logic.SpawnLocation;
import logic.common.team.Team;
import map.spawnStation.SpawnPosition;

public class TDMSpawnPosition implements SpawnPosition {
	
	private Team team;
	private Vector3f center;
	private TDMSpawnLocation spawnLoc;
	
	public TDMSpawnPosition(Team team, int dimension) {
		this.team = team;
		
		center = new Vector3f(dimension / 2, 0, dimension / 2);
		spawnLoc = new TDMSpawnLocation(center, 0f, dimension / 3 * 2);
	}
	
	@Override
	public float getActionRadius() { return Float.POSITIVE_INFINITY; }
	
	@Override
	public Vector3f getLocalTranslation() { return center; }
	
	@Override
	public Team getTeam() { return team; }
	
	@Override
	public int getID() { return -1; }
	
	@Override
	public SpawnLocation getSpawnLocation() { return spawnLoc; }
	
	@Override
	public SpawnType getSpawnType() { return SpawnType.TDM; }
}